package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.Role;

import java.util.Map;

public interface RoleService {
    PageResult findPage(Integer currentPage, Integer pageSize, String queryString);

    Map findAll();

    void add(Integer[] permissionIds, Integer[] menuIds, Role role);

    Map findAllById(Integer id);

    void edit(Integer[] permissionIds, Integer[] menuIds, Role role);

    void deleteById(Integer id);
}
